package config

import "time"

// 静态配置表
type ConfigStaticParkingStruct struct {
	Id             int       `json:"id" gorm:"type:int(11) auto_increment; NOT NULL; primary_key"`
	Alias          string    `json:"alias" gorm:"type:varchar(255); COMMENT:'别名'"`
	PushBaseUrl    string    `json:"push_base_url" gorm:"type:varchar(255); COMMENT:'推送url'"`
	AccessKey      string    `json:"access_key" gorm:"type:varchar(255); COMMENT:'key'"`
	AccessPassword string    `json:"access_password" gorm:"type:varchar(255); COMMENT:'密码'"`
	MuchId         string    `json:"much_id" gorm:"type:varchar(255);  COMMENT:'商户id'"`
	CreatedAt      time.Time `json:"created_at" gorm:"type:datetime"`
	UpdatedAt      time.Time `json:"updated_at" gorm:"type:datetime"`
	Status         int8      `json:"status" gorm:"type:tinyint(1);  COMMENT:'状态 1使用中'"`
	Money          int       `json:"money" gorm:"type:int(11); COMMENT:'余额(分)'"`
	PaymentMethod  int8      `json:"payment_method" gorm:"type:tinyint(1); COMMENT:'支付类型 1全额 2部分支付'"`
}

func (c *ConfigStaticParkingStruct) TableName() string {
	return "config_static_parking"
}
